<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<th:block th:fragment="buildSelect(labelName,inputId)"
          th:assert="${!#strings.isEmpty(labelName)&&!#strings.isEmpty(labelName)}">
    <div class="item-inline">
        <label class="inline-label" th:text="${labelName}+'：'"></label>
        <div class="inline-box">
            <div class="inline-box-cc">
                <div class="box-input-inline">
                    <select th:id="${inputId}" th:name="${inputId}" th:lay-filter="${inputId}"></select>
                </div>
            </div>
        </div>
    </div>
</th:block>
<th:block th:fragment="buildXmSelect(labelName,inputId)"
          th:assert="${!#strings.isEmpty(labelName)&&!#strings.isEmpty(labelName)}">
    <div class="item-inline">
        <label class="inline-label" th:text="${labelName}+'：'"></label>
        <div class="inline-box">
            <div class="inline-box-cc">
                <div class="box-input-inline">
                    <div th:id="${inputId}" th:xm-select-name="${inputId}"></div>
                </div>
            </div>
        </div>
    </div>
</th:block>
<th:block th:fragment="buildTime(labelName,inputId)"
          th:assert="${!#strings.isEmpty(labelName)&&!#strings.isEmpty(inputId)}">
    <div class="item-inline">
        <label class="inline-label" th:text="${labelName}+'：'"></label>
        <div class="inline-box">
            <div class="inline-box-cc">
                <div class="box-input-inline">
                    <input type="text" th:id="${inputId}" th:name="${inputId}" autocomplete="off"
                           placeholder="yyyy/MM/dd - yyyy/MM/dd"
                           class="layui-input">
                </div>
            </div>
        </div>
    </div>
</th:block>
<th:block th:fragment="submitButtonGroup">
    <div class="item-submit">
        <button class="layui-btn layui-btn-sm" lay-submit="" lay-filter="zmn-form-submit"><i class="layui-icon"></i>
        </button>
        <button type="reset" lay-filter="zmn-form-reset" class="layui-btn layui-btn-primary layui-btn-sm"><i
                class="layui-icon"></i></button>
    </div>
</th:block>
<th:block th:fragment="buildLinkSelect(labelName,idArr)">
    <div class="item-inline col2">
        <label class="inline-label" th:text="${labelName}+'：'"></label>
        <div class="inline-box">
            <div class="inline-box-cc">
                <div class="box-input-inline col2">
                    <select th:id="${idArr[0]}" th:name="${idArr[0]}" th:lay-filter="${idArr[0]}">
                        <option value="">-选择-</option>
                    </select>
                </div>
                <div class="box-input-inline col2">
                    <select th:id="${idArr[1]}" th:name="${idArr[1]}" th:lay-filter="${idArr[1]}">
                        <option value="">-选择-</option>
                    </select>
                </div>
            </div>
        </div>
    </div>
</th:block>
<div th:fragment="query">
    <div class="zmn-form-item">
        <th:block th:replace="::buildXmSelect('服务平台','platWork')"/>
        <th:block th:replace="::buildXmSelect('子公司','companyId')"/>
        <div class="item-inline">
            <label class="inline-label">部门：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <select name="deptId" id="dept">
                            <option id="deptIdAll" th:value="${onlineCustomerSubDept}+','+${callCenterChildDept}+','+${platformOperationsSubDept}+','+${orderManageDeptId}+','+${qualityControlDepartmentDeptId}">全部</option>
                            <option th:value="${onlineCustomerSubDept}">网络客服组</option>
                            <option th:value="${callCenterChildDept}">呼叫中心</option>
                            <option th:value="${platformOperationsSubDept}">用户运营部</option>
                            <option th:value="${orderManageDeptId}">订单管理</option>
                            <option th:value="${qualityControlDepartmentDeptId}">品控部</option>
                        </select>
                    </div>
                </div>
            </div>
        </div>
        <div class="item-inline">
            <label class="inline-label">录入人：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <div id="receiverId">
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="zmn-form-item">
        <div class="item-inline">
            <label class="inline-label">下单日期：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <input class="layui-input" autocomplete="false" id="startDate" type="text" name="startDate">
                    </div>
                </div>
            </div>
        </div>
        <div class="item-inline">
            <label class="inline-label">至：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <input class="layui-input" autocomplete="false" id="endDate" type="text" name="endDate">
                    </div>
                </div>
            </div>
        </div>
        <th:block th:replace="::buildXmSelect('下单渠道','channelId')"/>
        <div class="item-inline">
            <label class="inline-label">分单：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <select name="bypass" id="bypass" lay-search="">
                            <option value="">全部</option>
                            <option value="true">已分单</option>
                            <option value="false">未分单</option>
                        </select>
                    </div>
                </div>
            </div>
        </div>
        <th:block th:replace="::submitButtonGroup"/>
    </div>
</div>
